package com.deke.order.controller;

import com.deke.order.service.ChapterService;
import com.deke.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @version 1.0
 * @Author :LiM
 * @Date :2022/12/26 12:20
 */
@RestController
@RequestMapping("/order/chapter")
public class OrderChapterController {


    @Resource
    private ChapterService chapterService;
    /**
     * 根据课程id查询对应课程信息
     * @param
     * @return
     */
    @PostMapping("/findChapterById/{id}")
    public Result queryChapterByCourse(@PathVariable String id){
        return chapterService.queryChapterByCourseId(id);
    }
}
